add DFS,BFS traversal