beginning of BTreeIndex.cc and BTreeIndex.h