Add minimum and maximum functions to NSArray and NSSet