traverses through the
n
records in the data array
linearsearch(data,n,key,pfound,ploc)