Added comparators for different types.
Documented the Comparator interface.