Added the recursive exponential function