To get inverse of matrix

Changed from 'mean' to 'solve'