Added Kruskal's algorithm and documentation