minimum spanning tree creator