Floyd-Warshall Algorithm implemented in rust