Comparing histograms by chi-square distance. But it isn't comparing the distances yet, I need to decide a threshold