add description for max_sum algorithm