Write a main method for GCD