[math-fun] New (?) Euclidean algorithm