Add a `contains` method to Rect