ALGORITHMS FOR MANUFACTURING PAPERCLIPS AND SHEET METAL STRUCTURES