basic count min sketch implementation