Added code and test code for streamReadBit() and streamReadBits()