Number of bins and maximum lateness minimization in two-dimensional bin packing