ramblings on memoization