added the functions to cache the inverse of a matrix object.