Use binary search if we have more than 1000 elements inside of RangePartitioner