added a linear search and test