Complete the linear search method