Added comparator implementation skeleton