Quickly estimate percentiles in an array, using a downsampled version.
The array to estimate the percentiles for.
The percentiles.
The percentile values.