24. Lexicographic permutations. Different perm generation methods.