implement common logarithm