[SPARK-2082] stratified sampling in PairRDDFunctions that guarantees exact sample size

Implemented stratified sampling that guarantees exact sample size using ScaRSR with two passes over the RDD for sampling without replacement and three passes for sampling with replacement.
Actually if I remove the "[random]" here I get an out-of-scope error: "private class Result escapes its defining scope as part of type (org.apache.spark.util.random.Result[K], org.apache.spark.util.random.Result[K]) => org.apache.spark.util.random.Result[K]"