added DFS, DFSAll and BFS support