Uses definition 7, as per R definitions
the quantile
the array of data. The data will be sorted as a side effect of the call
the percentile, must be within (0, 1)