Fast stochastic algorithm for simulating evolutionary population dynamics