matrix inversion assignment