isIdentical check for shared doubles