Measurement of two-photon exchange effect by comparing elastic $e^\pm p$ cross sections