Flattern the binary tree