Implement a linear search