qrank function

Quantile ranks of a vector