Algorithm for data sample representation by histograms with unequal cell widths.