Kruskal algorithm

Kruskal algorithm