diff
- if (bucketSize * 2 > capacity) {
+ if (bucketSize > capacity / 2) {
