Insert Greatest Common Divisors in Linked List