Competitive Programming - DFS and BFS Overview for beginners in c++