a category implementing ruby like operations on nsarray