Add map-reduce to ArraysOps