INIT_QUADTREE(5)
LIST_RECTANGLES()
CREATE_RECTANGLE(C,16,18,10,1)
CREATE_RECTANGLE(A,8,8,2,2)
CREATE_RECTANGLE(B,10,17,1,10)
CREATE_RECTANGLE(D,28,13,1,1)
TRACE ON
SEARCH_POINT(1,1)
INSERT(A)
SEARCH_POINT(1,1)
SEARCH_POINT(6,6)
INSERT(A)
INSERT(B)
INSERT(C)
RECTANGLE_SEARCH(B)
LIST_RECTANGLES()
INSERT(D)
SEARCH_POINT(28,13)
MOVE(D,-8,-1)
TRACE OFF
SEARCH_POINT(28,13)
DELETE_RECTANGLE(A)
DELETE_POINT(20,12)
SEARCH_POINT(7,7)
LIST_RECTANGLES()