[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.
We are implementing a non-trivial algorithm here. Lets use more descriptive names instead of g1, q2, q1, and q2.