An implementation of Ted Dunning’s “t-digest”, a structure for computing rank- based statistics on large datasets