Add modified version of readOutCombineOverAllPathsValues

Copied and modified from the binrel_merge_fn branch