Bellman-Ford routing algorithm

See distance vector routing algorithm.