Added Huffman coding