Adds assignment 3 up to linear search.