Add search.c and swap.c