Added more extension methods for Rectangles and made the extension class internal.