Implementation of HuffmanEncryption.prepare()
Added implementation of makeTree in HuffmanEncryption.