Create nextPermutation