create cdf from histo