First version of cashed inverse functions

2 functions that are used to create a special object that stores a
matrix and cache's its inverse