Histogram: updating with ranks