binary search through buckets