Generation of Permutations in Lexicographic Order (Algorithm 323 [G6])
CACM September, 1969
Leitch, I. M.
