Updated both functions makeCacheMatrix and cacheSolve for checking the inverse.