using correlation in histograms comparison