doubly linked list and its ordering methods