add algorithm for quantile estimation