Generic Configurable Comparator