changed formula of ncdEntropy distance calculation