Updating the cachmatrix.R file