Added function to find GCD of two numbers.

Added function to find GCD of an array of numbers.

Coefficients are now simplified with the use of the GCD. This solves issue #6

Signed-off-by: PandaDragonThing <jacob@linuxrocket.net>