A Solution of the Rectangular Cutting-Stock Problem