Greatest Common Divisor C++ library