binary tree to ddl