First version
Kruskal's algorithm working