Updated HuffmanTree class