Create minconflict.cpp

Implements basic MinConflict algorithm.