Typical "find closest in tree" realization