Problems with tag Kruskal's Algorithm