Code to create the matrix object, get, set and inverse methods, as well as establishing the cache-capable function to return the inverse.