added DFS, BFS