added code for the cacheMatrix assignment