Added DFS and BFS on a tree.