Uses Prims algorithm to find an approximate solution to the traveling salesman problem