typo error fix in min.cpp and max.cpp