change AddReduceSingle/Final to take size of arrays rather than arrays