Add btree memory implement for engine.