fix documentation for nextPermutation and nextEvenPermutation

The three examples in the documentation are wrong:
"while (nextPermutation(a)) { }"
should in fact be
"do { } while (nextPermutation(a));"
or we miss the very first permutation. This is true for nextEvenPermutation, too.