Connected components exercise done.