Update cacheMatrix with assignment code.