Update Kruskal, Prim Minimum Spanning Tree Algorithm