Fixed ZangwillSolver so it will exit correctly by iterarion count limit