A Two-stage Solution of the Cutting-stock Problem