better support for memory-histograms
more updates for in-memory histogram