C++ program implementing a simple binary search tree