re-factoring for isSymmetric to support compareData flag to include and exclude data comparison in the algorithm.