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.
Also we should not hardcode the number of partitions to 2. Could we take this as a param and set the default to 2 ?