implement approx_distinct function using HyperLogLog
#1087
Merged
approx_distinct function using HyperLogLog
#1087