[Haskell-cafe] Implementation of the Floyd-Warshall algorithm