implement HyperLogLog.