makeCacheMatrix and cacheSolve for matrix inversion.