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.
Style nit -- We tend to use `{` around `function` even if the function fits on the same line. The same applies below too.