Implemented Lazy matrix inverse