BFS, connected components
quiz2