Added lexicographic permutation generator.