added matrix calculus - Jacobian matrix