11/18/14 - revised compareEntropy function