[Haskell] Sequential codes for LinSolv and Ray Tracer