Linked list and double linked list examples