huffman tree before encoding