Revert "Update cachematrix.R"

This reverts commit e6e59e13c17ac2c9e7c27be786b513f803dec6c8.