Maximal Rect working with bounds