Added methods to get bit at index and number from range of bits in a byte.