The dynamic lot-sizing model with backlogging: A simple 0(n log n) algorithm and minimal forecast horizon procedure