chapter 8: practice the non-generic version of binary search