Adding CalculateEntropy function to CPEFile class