Huffman encoder/decoder