algo practice of Binary Tree