implement cacheMatrix and cacheSolve, first version