Update cachematrix.R

from Rdataman