terminateGEQ function

Terminates, if the solution is greater equal a threshold.