[CA] refactored depth search to be more universal search engine