add reducePairs: method to NSArray