Wrote assignment functions to create and store the cached inverse of a square matrix