quick sort for Date1 is implemented using interface Comparable