made the getGcd method static

No use in it being non static, all the other methods should be non
static though...