Adding strongly connected components.
Adding union find.