Find Greatest Common Divisor Java