Add log10 and lg as 10-based logarithms

Since many may be used to 10-based logarithms, it makes sense to have functions for these as well. This patch introduces log10 and lg as function names for 10-logarithms (both commonly used on calculators).