Text this: An algorithm for general infinite horizon lot sizing with deterministic demand