implement read huffman bits