Add MapReduce methods into the new collection api

JAVA-1215