update functions makeCacheMatrix and cacheSolve