add next permutation solution