Add Floyd-Warshall algorithm.