Update cachematrix.R

Authored by G.Puviarasi