Added a algorithm to find the connected components of a graph.