Solving geometric problems with tree algorithms.