Revert "CacheMatrix function"

This reverts commit a20f2ecb2630c08d0241adb454d122febb351e85.