program for searching the elements in the array using linear search