Updated binary tree and C++ codes