improved Hist.quantiles method