BTreeIndex class and fix some bugs in BTreeNode