added solution to computing the gcd problem