added BST to sorted doubly-linked list algo