added merge_median in cc