Revert "Revert "my work to make a cachematrix""

This reverts commit 21f5eb0a2d97cf3a3fe0d800586596ab8abf994a.