Swaps the contents at two indices in the selected Permutation.
With First index = 1 and Second index = 3, the permutation (1,3,4,2,5) is turned into (4,3,1,2,5).
© djmw 20110105