Changed permuteWords to use iterator only