edits to permutation group funcs, added cayley tables