maybe we should use t-digest here instead, we can probably extract some utility classes out of aggregations