Create quantile.weighted.r

Calculates quantiles for numeric vector X.