Submitting changes to cachematrix.R file