A C-program to search for an element in an array