Ert 538 Improve binning of log-plotted histograms.

While plotting histograms with logarithms the binning function now considers this logarithm. 

First finds the difference between the exponent of the minimum value and the maximum value. 
Then finds the number of bins that is closest to the sqrt(realization_count) and also a also a multiple of the first value.