Modify determineNumberOfBitsRequired() to use bit test instead of log and ceil