fixed equality operator for triangles