New leftover space distribution to avoid small changes

When distributing the leftover space, the old procedure would
tend to result in summaries changing sampling levels by only
a small amount.  Instead, this procedure tries to minimize the
number of small changes.