explain DFS and BFS using two examples