in-place calculation of permutations

Speedy calculation of the next permutation in-place in a mutable vector.