Adding a method to get matches and added a comparator for non-comparable objects
RectangularIntervalTree v1