complete the vector comparator class

complete the vectorcpmparator class
1.add judgment method
2.finsihed the compare method