updated stratifiedSample to be more scalable, keeping data in RDDs instead of collecting to the driver