Matrix Differential Calculus with Applications in Statistics