Added algorithm to try another delta for the minimum finding algorithm if thickness fitting didn't worked. Reduced the errors from 1235 to 20 for the test data set