Completely finished exercise 2.2-2. Moved LinearSearch.java to the
Chapter2 package, since it's used in exercise 2.2-3.