Complete to implement gauss-seidel algorithm