Stochastic Modeling and Simulation of Biological Phenomena with Applications in Population Genetics and in Cell Populations