A binary search tree in C++