diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/.idea/.name b/.idea/.name
new file mode 100644
index 0000000..e0783ec
--- /dev/null
+++ b/.idea/.name
@@ -0,0 +1 @@
+Cutting_Stock
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..ba93b15
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..2fe4f54
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Cutting_Stock.iml b/Cutting_Stock.iml
new file mode 100644
index 0000000..26db12c
--- /dev/null
+++ b/Cutting_Stock.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index e86a2c0..f6ec528 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ And I want pieces example
700(mm) * 4 pieces
500(mm) * 3 pieces
- 250(mm) * 4 pieces
+ 250(mm) * 6 pieces
320(mm) * 5 pieces
To cut this efficiently by minimizing the waste, here is the code.
diff --git a/bin/org/optimization/CuttingStock.class b/bin/org/optimization/CuttingStock.class
index 042ab0c..2d6ca4f 100644
Binary files a/bin/org/optimization/CuttingStock.class and b/bin/org/optimization/CuttingStock.class differ
diff --git a/bin/org/optimization/InvalidLegthException.class b/bin/org/optimization/InvalidLegthException.class
index 193e658..b1cc80b 100644
Binary files a/bin/org/optimization/InvalidLegthException.class and b/bin/org/optimization/InvalidLegthException.class differ
diff --git a/bin/org/optimization/InvalidParameterException.class b/bin/org/optimization/InvalidParameterException.class
index ef71a2d..be4f5dc 100644
Binary files a/bin/org/optimization/InvalidParameterException.class and b/bin/org/optimization/InvalidParameterException.class differ
diff --git a/bin/org/optimization/MainClass.class b/bin/org/optimization/MainClass.class
index e3afa05..4904e7d 100644
Binary files a/bin/org/optimization/MainClass.class and b/bin/org/optimization/MainClass.class differ
diff --git a/src/org/optimization/CuttingStock.java b/src/org/optimization/CuttingStock.java
index f10abee..4d5cb82 100644
--- a/src/org/optimization/CuttingStock.java
+++ b/src/org/optimization/CuttingStock.java
@@ -1,83 +1,54 @@
package org.optimization;
-import java.util.HashMap;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
+import java.util.*;
+import java.util.concurrent.atomic.AtomicReference;
public class CuttingStock {
private int block[],qty[],comb[],tempcomb[],limit[];
@SuppressWarnings("unused")
private int max,total,counter=0,waste=0;
- private List