eucl_alg added