Updated matrix code for new hs-tensor specfication.
Ignored cabal config file.