Extract shared sources out of ga folder

Extract evolve, population and evolve_monitor out of ga specific source
code, since gp can also benefit from using the same functions.