Minimum boxes for diff