Update Using Comparator in C++.cpp