add function Pikaia.generational_replacement