matrix logarithm function for mxAlgebra