The functions makeCacheMatrix and cacheSolve was written.