Find tour for traveling salesman by creating a minimum spanning tree first. Implemented in java