MATH: Added math::matrix_multiply and math::matrix_transpose for dynamic matrices