Kruskal implementation done