RE: All Permutations Algorithm