Add function log(base; x)

http://code.google.com/p/speedcrunch/issues/detail?id=486

Now that log(x) is called lg(x), use log(base; x) for arbitrary base.
This also follows ISO 80000-2:2009.