STL unique next_permutation