Add DFS and BFS