Added the Ackermann function implementation