Added templates to population.h and generation.h