updated BitOutputStream.cpp (contains errors)