Minimum bounding box algorithm c. boxes of various widths and heigh ts.