Removed previous euclid and inverseMod