Comparator object as class member