Problems with Comparator in vector<X>