add flatten binary tree