HyperLogLog implementation