anchor.diff:      end,
       T1 = get_timestamp(),
   
  -io:format("vtree: delete: NewPos: ~p~n", [NewPos]),
   %    {NewPos2, TreeHeight} = lists:foldl(fun({{Mbr, DocId}, Value}, {CurPos, _}) ->
   %        %io:format("vtree: add (~p:~p): {~p,~p}~n", [Fd, CurPos, DocId, Value]),
   %        {ok, _NewMbr, CurPos2, TreeHeight} = insert(Fd, CurPos, DocId,
  
positive.code:             %     If there is only one node, use that one.
              case {MbrW, MbrS, MbrE, MbrN} of
                  {error, error, _, _} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrE, PartE}, {MbrN, PartN}];
                  {_, _, error, error} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrW, PartW}, {MbrS, PartS}];
                  {_, error, error, _} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrW, PartW}, {MbrN, PartN}];
                  {error, _, _, error} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrS, PartS}, {MbrE, PartE}];
                  _ ->
                      % XXX vmx this is the right, normal case (i.e. the hack
  
negative.code: % 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,
  