quantileInt
Returns the quantile (inverse CDF) for the given probability p as an Int.
Uses a linear search over the support, accumulating PMF values until the cumulative probability meets or exceeds p.
Return
the smallest integer k in the support at which cdf(k) >= p.
Parameters
p
the cumulative probability, must be in [0, 1].