adding kruskal's mst algorithm