Create functions to support cacheable invertible matrices.