New search algorithm