makeCacheMatrix and cacheSolve written.