search_array function exercise