Switched to a loop to run the tests of the Ackermann function