Add Kruskal's and Prim's algorithm.