Added function on symmetric matrices.