Edits made to cachematrix.R file