done the same binary tree task