Implement gcd in assembly