added calculus of an array of quantiles