Include <algorithm> for std::__gcd()