added TraitComparator.java