First writing of matrix-like object with caching of the inverse. Not yet debugged.