Added max_2_sum and testMax2Sum methods