Create max_prob_seg.cpp