working on HistogramManager.merge