added new functions for binning bernoulli trials into binomial points.