port of blink-tree-logic to mongodb