added search.h/cpp