Add some documentation and doctests to HyperLogLog