added minimumTotal.cpp