An Algorithm To Construct Industry Cost Curves Used In