Next lexicographical permutation