added intersects and overlaps functions to interval