Doublechecked and corrected methods for Comparator and added fallback
with NULL objects