Added reduceRight to complete the reduce library