BTree integration

basic bt, but needs to be revised! (setting blackboard data could be
much better somehow)