implemented interface Comparable for Rectangle1