nextPermGenerator repeats less code from nextPerm