matrix inversion assignment completed