addde gcd and ext gcd to algo, pending tests