Create Using Comparator in C++