Fixed bug with basic.gcd()

- Now throws an error if non-integer values are passed.
- Fixed bug where a is returned if b == 0 and vice versa.