Improved dynamic programs for some batching problems involving the maximum lateness criterion