TH1: add GetCumulative method

patch based on Francesco Dettori from LHCb to provide the cumulative
distribution of a histogram as another histogram; include a small
tutorial macro that doubles as unit test