Subclassed LinkedList class to add remove_duplicates function