[docooler] add flatten binary tree