add search.c and search.h