Sorting Large Datasets Into Equal Buckets