Add Bellman-Ford algorithm