improved dryness by inheritting DFS/BFS from Search