STL-compatible sorted doubly-linked list