[Haskell] Linear Equation Solver Using Arrays