fix min spanning tree implementation