General linear algebra structures for Haskell.