Huffman encoding added