Add iterator version of permutation