lib: add gcd method
0.13.0