CCI Problem 11.5 Sorting/Searching