Simulating stochastic evolutionary dynamics