implementation makeCacheMatrix and cacheSolve