Fibonacci dynamic programming, non recursive and recursive methods