inverse matrix cache

Functions that cache the inverse matrix and cache the value