+ fixed bugs in DFS and BFS