add minimumTotal2.cpp