Create Flatten binary tree