B+tree in C++