add prim&kruskal algorithms
fix