Dynamic programming example - fibonacci sequence