cachematrix.R file has been edited and this version works.