implement manhattan link routing