Revert "Update cachematrix.R"

This reverts commit 00f0a71666cb7da59a93ad4bf629cd64423f7135.