Revert "Update cachematrix.R"

This reverts commit 8711176c7901c33a70c28a4d8ca0f3a14c8a0938.