Create adaptiveHuffmanTree