Added faster but approximate method to calculate quantiles