Kruskal's algorithm added