sets as binary tree

Signed-off-by: Edgar Wang <edgar.xiaoxiangyu@gmail.com>