added new file connected_components.py