A pure Ruby implementation of the SpaceSaver algorithm for estimating the top K elements in a data stream