Another tensor and linear algebra in haskell