added code for computation of inverse matrix to stub file