Simplify ranked frequency implementation
Don't leave garbage behind