Modify cachematrix.R with documentation