changed base case for recursion, introduced memoization
taken memoization out (wrong), changed base case still in