prims, krsuskal, dijkstra, and floyd algorithms in c/c++