Added the prim and kruscal algorithms.