remove duplicates in sorted lists II
next permutation
permutations