alternation of sexual and parthenogenetic generations especially in certain flatworms