To search the element in the given array