Logarithmic time exponential function