anchor.diff:  % the License.
   
   -module(vtree).
  +
  +-include("couch_db.hrl").
   
   -export([lookup/3, lookup/5, within/2, intersect/2, disjoint/2, insert/4,
            area/1, merge_mbr/2, find_area_min_nth/1, partition_node/1,
  
positive.code: % Only a single bounding box. It may be split if it covers the data line
  lookup(Fd, Pos, Bbox, FoldFunAndAcc, Bounds) when not is_list(Bbox) ->
      Bboxes = split_bbox_if_flipped(Bbox, Bounds),
  io:format(user, "splitted boxes: ~p~n", [Bboxes]),
      lookup(Fd, Pos, Bboxes, FoldFunAndAcc).
  
  % It's just like lists:foldl/3. The difference is that it can be stopped.
  
negative.code:     {ok, NewPos2, TreeHeight} = vtree_bulk:bulk_load(
              Fd, NewPos, NewTargetTreeHeight, AddKeyValues2),
      T2 = get_timestamp(),
      ?LOG_DEBUG("It took: ~ps~n", [T2-T1]),
      ?LOG_DEBUG("Tree height: ~p~n", [TreeHeight]),
      {ok, NewPos2, TreeHeight}.
      %{ok, 0}.
  
  