Finished up the bucketing algorithm for the histogram table.