add intersected and united methods to Rect