Fixed bug in toCycleString() which didn't allow PERMUTATION_INDEX to vary