Import accuracy tests from t-digest.
Remove object allocations from TDigestState.add.

This improves performance by ~10% according to the benchmark.