Added algorithm for finding connected components
Add Floyd-Warshall algorithm (`alg.floydWarshall`)