Exercise BFS vs DFS