added minimum spanning tree solver