Implementation of MST algorithm (Prim and Kruskal) and shortest path algorithm (Dijkstra and Bellman-Ford)