Java Unidirectional TSP Solution