natural logarithm implemented