added binary tree solution