refactors gcd to one line
Merge pull request #3 from cirocosta/one-line-gcd

Refactors greatestCommonDivisor to one line