Data mining framework for batching orders in real-time warehouse operations