Simple algorithm(s) to calculate the gaps used in a Bayesian Bootstrap framework.