add floyd_warshall solution of all-pairs shortest paths problem