Applied Geostatistics with SGeMS: Stochastic simulation algorithms