Add a "atol" function using tail-recursion