Ported t-digest to stream-lib's environment.