Added huffman encoder.