new version of generateNewPopulation function
bla bla bla... conflict boring stuff
First working version for our hybrid solution