Implementation of GONME: enhanced q-relaxed algo