my cachematrix.R revised into coursera-R-Assignment-2 repo