Change search.cpp

Make the code a little more readable. Use std::max instead of
comparison.

No functional change.