defaultPercentile, moved more logic into updateHistogram()