optimize the btree
fix bug for BTree removeCore