Working colatz-memoized