Implement lu and gauss-seidel methods