Implemented Kupershtokh and Medvedev EDM