Implementing caching of inverse matrix
Merge pull request #1 from dloker/Implementation

Implementing caching of inverse matrix