rename next_permutation to nextPermutation.