Fast and fully-automated histograms for large-scale data sets