Count Min Sketch implementation in Ruby