Add min and max functions to NSArray and NSSet