Add map() function to apply a function to each item of an array
Add reduce() function to compute an aggregate result from a list step by step