matrices with inverse cache are implemented