Finished Dijkstra, Validation funcion, started Bellman Ford