Implementation od codeTree in HuffmanEncryption.