Text this: Stochastic algorithms: foundations and applications