Dynamically-binned histograms