fixed kruskal disjoint set bug