Kruskal almost working