Gillespie stochastic simulation algorithm on a lattice.