kruskal algorithm
kruskal