Improved TSP solution: more memory efficient to store solutions to subproblems (less objects means less occupied heap space)