fix documentation for nextPermutation and nextEvenPermutation