update makeCacheMatrix & cacheSolve functions