working on huffman tree