Compute nth Fibonacci number using dynamic programming. F(0)=0, F(1)=1, F(n)=F(n-1)+F(n-2). Implement memoization and tabulation.
Examples