a haskell library exporting a Matrix class (optionally fixed size at compile time)