Add BFS and DFS to tree.