Part 2.c steps 5 and 6 complete

added the gcd and related functions. Fixed the result method.