11/19/14 - minor memory management to code, some updates to
compareEntropy function