A stupid binary tree backend