added reduce methods to NSArray and NSSet

Return a single value from an array or set by iterating through the elements and transforming a running total. Similar to Ruby's reduce method, also known as fold or inject.