Invariant reaction detection for binary phase diagram plots.