Kruskal Algorithm for Minimum Spanning Trees (MST)