Initial commit of Kruskal's algorithm.