prob 14: implemented collatz len with internal memoization
generic memoization: an approach that doesn't work.
generic memoization: removed broken impl