adding B-tree API