Finds the quantile by optimizing the weighted check function
weighted_quantile_inner(tau, cvec, weights = NULL, norm = TRUE)
between 0 and 1, ex. .5 implies get the median
a vector to compute quantiles for
the weights, weighted.checkfun normalizes the weights to sum to 1.
normalize the weights so that they have mean of 1, default is to normalize