Initial version of Bellman-Ford