Track the top (or bottom) N keys added to a list, and discard the remainder.
Michael Graff
December 16, 2013 4:03am
MIT