Some refactoring + addition of cyclic permutation functions
More appropriate to return set instead of list.
Fixing juggling rearrangements code to deal inconsistent inclusion of cyclic permutations. Now all cyclic permutations are included in the result set.