generatioin recursive, plantage mémoire