quants function

Calculate cuts by quantiles