Inverse of Matrix with Cache