gene expression and population dynamics algorithm