create and finalize makeCacheMatrix and cacheSolve