This is the final version of the modified cachematrix.R script