new algorithm for making histos from ntuples