Make sure numCentroids value is sane
Make sure numCentroids value is sane

Fixes a crash if numCentroids was negative, and potential out-of-memory
condition if we try to allocate to huge a digest.

And 4 million centroids ought to be enough for anybody...

Found by fuzzing.

postfix/go-tdigest,caio/go-tdigest