HyperLogLog (original and hyperloglog++) algorithm implementation in java.