Revert "Revert "Update cachematrix.R""

This reverts commit 02a5c36dd68fb11bb8d469d5eb9858af9a13d56d.
cachematrix.R