rprog-004 Programming assignment 2 commit1

Commit the cachematrix.R for rprog-004 Programming assignment 2.