Keep only best solution for problem 2