Matrix conversion

Implementation of matrix inversion caching object