Convert binary tree to link list in pre-order

Signed-off-by: Peter Zhou <peteryzufl@gmail.com>