Simple B-tree implementation attempt in C++