Permutation iterator with "expand" in place