Euclidean Algorithm for finding GCD