Bellman-Ford alg small bug fix