adding the Euclids Method with a min call