permutationSpace function

These functions handle the orbit of permutation/rotation tests (i.e. permutation/rotation space).