fork and binary tree