documentation added to linearsearch.c