has binary search as modified hasItem