correct algo. with refined structure
DP for nth Fib number