Update of cachematrix.R file