[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.
`immutable.HashMap`: http://www.scala-lang.org/api/2.11.1/index.html#scala.collection.immutable.HashMap

`MMap` may be confusing because of `MultiMap`: http://www.scala-lang.org/api/2.11.1/index.html#scala.collection.immutable.MultiMap