symmetrized the matrix