Improvements to TDigest:

 - the histogram is now stored using parallel arrays instead of a tree of objects
 - use of a red-black tree instead of an AVL tree
 - various changes to make it faster (avoid computing things twice, update in place instead of remove-then-add)