updated function makeCacheMtrix and cacheSolve