Flatten binary tree to linked list.