Added GCD algorithm