Huffman tree prototype