--- from: http://rosettacode.org/wiki/Floyd-Warshall_algorithm note: Routing algorithms