bitsRequired
Returns how many bits are required to hold values up to and including maxValue NOTE: This method returns at least 1.
Return
the amount of bits needed to represent values from 0 to maxValue.
Parameters
maxValue
the maximum value that should be representable.