Bitbuffer and bitstream parser