implemented quantile cache