Calculates entropy of Huffman encodings of texts based on frequency of characters