cachematrix

Below are two functions that are used to create a special object that
stores a matrix and caches its inverse, assuming that the matrix is
invertible.