add linear search algorithm