added functionality for quantiles, quant.smooth = "default"