flatten

flatten a binary tree to singly linked list