Create max_match_seg.cpp