Kruskal Implementation and Testing