Solved problem 14. It's pretty slow without memoization.
Solved problem 15.