Added Kruskal's algorithm for minimum spanning tree