Update function checking if a matrix is symmetric