Revert "Cache Matrix and solving it's Inverse"

This reverts commit 9722881231b24a5460ca62d258cd5ba39a72ab61.
Revert "Revert "Cache Matrix and solving it's Inverse""

This reverts commit 108818779b1a5d8386445dbe438b48624b607715.