tree longest distance