Implemented BitOutputStream.cpp (only implemented writeBit() and flush() functions).