First part of max_2_sum done