cacheMatrix function is updated