Implements Kruskal algorithm, has an option to input a pre sorted
weightlist
Further optimizations on the node improvement algo and some mutations on
testclass