Added comments
Fix: Iterative version doesn't require memoization parameter