[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.
Let's combine this function with getUpperBound() into a single getPoissonBounds() function that returns a tuple. There is good overlap between the two functions and they are used in the same place.