update makeCachematrix function