btree compiles, but never works