Added reduce for object, and reduce + reduceRight for array