new histogram features

faster update
more accurate binning