cacheMatrixR