Median_link.cc added