convert i and j mutually
refactoring laplace_gauss_seidel