added minimizer.cpp