Update search.cpp