Examples of stochastic methods