Implemented the cacheMatrix.R functions