next_permutation and prev_permutation, and tests