playing with the gcd algorithm