Create Kruskal's Algorithm