Add and use BitInputStream/BitOutputStream