[Haskell-cafe] matrix manipulations and calculations