binary tree implementation using C++(C++11)