Fixed ecn3.cpp to support quartic twists