Programming assignment to cache the inverse of a matrix.