Linked List class and Graph class