permute Compute the permutation that transform a generic slice to another Apply a permutation to a generic slice