templatize btree
make btree independent of appbase
now btree standalone
no more btree.cc