huffman encoder/decoder