histogram: Option -r to set a reference range (2)

Set binning range such that the reference interval is
divided into the wished number of bins and then more
bins are added or removed to cover the data interval.
histogram: Option -r to set a reference range (3)

Allow for reference minimum smaller than data minimum.