Added faster looping for permutations with a bound on one cycle