Fixed bugs in the permutation algorithms
Working on my subgroups algorithms