ENH refactor tools for coping with symmetric matrices.
update example and latent node crf