Stacks using LinkedList and Resizing Arrays