I've written down both functions in cachematrix.R: makeCacheMatrix and cacheSolve.