Functions makeCacheMatrix and cacheSolve done.