Now passing ackermann memoize and double arrays.