Revert "Update cachematrix.R"

This reverts commit c00e310c41c32516bd5087a7c82ede07df8c055d.

Signed-off-by: dbbevan <dbevan@outlook.com>