binary search item cost