Added Floyd-Warshall algorithm for shortest paths