10.2.7 comparing binary search and linear search