Implemented outline for TSP