C++ B-Tree implementation