updated BitInputStream.cpp