Created LinkedList class, and implemented generics.