updated BitInputStream.cpp (contains errors)