this is weird. In one, the keys are ordered by how heavy they are. here we have lost that.

If you are going to do this, bite the bullet and make it `SortedSet[(V, K)]` where V is the frequency (and reverse sorted).

This also makes it clear that you have to do .toList to get a real test (yours is only testing set membership now).