Doubly Linked Priority List in Java