added box_size parameter for l_infinity regularization