Implemented depthFirst as an alternative search strategy