Searching the elements in the array by linear search method