[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.
Style nit: it would be nicer to avoid 'return' and write this as an expression.
```
if (lmbd == 0) {
  0
} else {
  val poisson = new PoissonDistribution(lmbd, epsilon)
  poisson.inverseCumulativeProbability(delta)
}
```