implement of makeCacheMatrix() and cacheSolve()