Write functions makeCacheMatrix and cacheSolve