btree function prototypes