Kruskal alg working :-)