Adding array_reduce and array_reduceRight along with tests.
Merge pull request #51 from zimbabao/adding-array-reduce

Adding array_reduce and array_reduceRight along with tests.