add SimilarityCriteria class.