Returns a permutation going forth and back through a list. When modulo is set to 2, the list (1 2 3 4 5 6) will become (1 3 5 6 4 2).