recusive+memo

recusive+memo