Convert BST to doubly linked list