Simplified PermutationGroup (using rank)
Improved/extended ByteArray