NextPermutation ac