Assignment 3 Array Doubling and Linked Lists Solution