implementing bayesian blocks for binning histograms and printing out gaussian fits