Updated next permutation algorithm description.