searching an element in an array