add a new method

calc distance from histograms