Fixes an integer overflow in floorToPowerOfTwo for 0x8000 0000 (32bit arch) / 0x8000 0000 0000 0000 (64bit arch) and higher.
Fixes the binary search in findBucket to return the intended bucket (e.g., 35 and 120 or 259 and 1020 went to the same bucket).