binary tree related excercises