Find the MST using Kruskal's Algorithm