Assign the first event to the first bucket, the last event to the last bucket.

Split the rest events into the rest (threshold - 2) buckets each containing approximately equal number of events