Histograms adaptation for small calculators