[Haskell-beginners] Automatic differentiation (AD) with respect to list of matrices in Haskell