Simulation of Evolutionary and Epidemiological Dynamics