Add good solution for next permutation.