Adding partial assignment for Huffman encoding