splitted common btree operations to its own trait

insertion works now, but still need more tests.