Implement a getBitsNeeded method to determine how many bits are needed to