Matrix Caching in cachematrix.R