version bottom-up de la memoization