Adds two functions from Spark: distinct() and mapValues().

Starting with SparkR by adding two functions from Spark:
distinct(): creates a new RDD with distinct elements from a given RDD.
mapValues(): applies a transformation to the values of pairwise RDD without changing the keys.