Math about Euclidean algorithm (poor implementation)
Counting carry during adding