modified the cachematrix.R file