Haskell implementation of common matrix manipulations