helper function and stouffer's method to combine z-scores