[SPARKR-108] Implement map-side reduction for reduceByKey().
Merge pull request #89 from sun-rui/SPARKR-108

[SPARKR-108] Implement map-side reduction for reduceByKey().