Different binning function added.
Binning switched to the new function

Now it is by new bin width definition instead of number of bins as
previously.