Problems with tag Kruskal Algorithm