Update search.cpp

same idea take 2 (reduce extention to pass STC)