[C++] Implementation of binary search tree.