Added cksymm function to check for symmetry