Calculates the quantile value of statistics sampled from a Monte Carlo simulation.
For example, when alpha = 0.1 the function determines the 1st percentile of the statistics.
Conversely, if reverse is True, the function determines the 99th percentile, i.e., (1-alpha) x 100.