Implemented Binary GCD algorithm