added executable version of correlate ntuple