optimize: get_curve_from_hist. much more faster when estimating the expression level