made a basic gcd operator