This is a port of https://github.com/splatlab/cqf
The actual paper: http://dl.acm.org/citation.cfm?id=3035963&dl=ACM&coll=DL&CFID=798336745&CFTOKEN=68203156
Discussion: https://blog.acolyer.org/2017/08/08/a-general-purpose-counting-filter-making-every-bit-count/