moved hyperLogLog to lib.c