added a bunch of methods inspired by ruby Enumerable to NSArray category