Compute percentiles, min and max with tdigest, close #1811