Some practice coding the space-saving algorithm (approximate heavy hitters) in various languages