2nd version of Kruskal's algorithm

Used the disjoint data structure, as well as merge sort. Might be
improvable in regards to garbage and more