Improve in-memory merge efficiency when there is a lot of forced eviction

Focus near the top of a stack of pages, merge as soon as we see a good candidate.

NOTE: this pull request needs testing before deciding whether it is worth merging.