Convert binary search tree to cyclic doubly linked list