added functions for bootstrap mean and quantile binning