The Maximum Box Problem and its Application to Data Analysis