modified linked list data structure