[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 on a second thought, the implementation becomes unnecessarily muddled if we combine the two functions. I'd prefer to leave them as is for clarity.