Fast Histogram Construction