Revert "Update cachematrix.R"

This reverts commit 35c8a4b9e4c4a99d7e6745364ff56ff4ea48c33c.