Turn Ackermann function into a virtual stack [even more memory-compact version with currentStep field]