cleaned up linsearch_generic
adding search, split from utils
removing linear_search from utils
edited to reflect change of functions in utils and search