Implement cmath.log10