put btree methods into class declaration