Cleaning things a bit. Should write a divide-and-conquer search() one day.