Implemented cachematrix.R