Update cachematrix.R

With test results.