Update cachematrix.R

Submitted by YSD