Euclidean Algorithm with rspect test