Recursion and Memoization Tutorial Python