Adding bellman-ford algorithm, fixing dijkstra