Added getGCD method, but haven't implementted it in main. Also need to
write unit tests.