Dynamic programming in Fibonacci sequence